<template>
  <div class="bg">
    <NewHomeHeader/>
    <div class="img_bg">
      <img class="bg" src="https://image.utea88.com/statics/pc_hezuo_bg_01.png" alt="">
      <img class="title_img" src="https://image.utea88.com/statics/pc_hezuo_item_01.png" alt="">
    </div>
    <div class="main_section">
      <div class="main_bg">
        <div @click="handleClick(index)" class="content_bg" v-for="(item, index) in list" :key="index">
          <div class="img_bg">
            <img :src="item.img" alt="">
          </div>
          <div class="title">{{ item.title }}</div>
          <div class="desc">{{ item.detail }}</div>
          <div class="arrow_bg">
            <img src="https://image.utea88.com/statics/pc_cooperation_arrow.png" alt="">
          </div>
          <div class="click">CLICK UP</div>
        </div>
      </div>
    </div>
		<Footer></Footer>
  </div>
</template>

<script>
	import NewHomeHeader from "./components/NewHomeHeader.vue"
  import Footer from "@/views/front/components/Footer";

	export default {
    name: 'NewHomeCooperation',
		components: {
			NewHomeHeader,
      Footer
		},
		data() {
			return {
        list: [
          { 
            title: '成为城市合伙人',
            detail: '城市合伙人集结号\n诚邀您开启千万收益征途', 
            img: 'https://image.utea88.com/statics/pc_cooperation_icon_3.png'
          },
          { 
            title: '成为供应商/采购商',
            detail: '免费入驻众茶通\n助力茶叶变现，自由交易', 
            img: 'https://image.utea88.com/statics/pc_cooperation_icon_1.png'
          },
          { 
            title: '加盟众茶仓',
            detail: '签约客户，非加盟仓、其产品\n库存数据在众茶国际云仓中心同步', 
            img: 'https://image.utea88.com/statics/pc_cooperation_icon_2.png'
          },
        ]
			}
		},
		methods: {
      handleClick(index) {
        if (index == 0) {
          window.open('https://mp.weixin.qq.com/s/X4tAcCQADL2M1i6FZQjNFQ',"_blank")
        } else if (index == 1) {
          this.$router.push({
            name: "frontAgreement"
          });
        } else {
          this.$router.push({
            path: "/front-storeCenter",
          });
        }
      }
  	},
    mounted(){
             
    },
    created() {
      
    },
	}
</script>

<style scoped lang="scss">
  .bg {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .img_bg {
    position: relative;
    width: 100%;
    height: 600px;

    .bg {
      width: 100%;
      height: 100%;
    }

    .title_img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 429px;
      height: 177px;
    }
  }

  .main_section {
    position: relative;
    width: 100%;
    height: 660px;
    background: rgb(242, 242, 242);
    display: flex;
    justify-content: center;
    align-items: center;

    .main_bg {
      position: relative;
      width: 1150px;
      height: 460px;
      display: flex;
      justify-content: space-evenly;
    }
  }

  .content_bg {
    position: relative;
    width: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
		cursor: pointer;

    .img_bg {
      margin-top: 40px;
      width: 150px;
      height: 150px;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .title {
      margin-top: 34px;
      height: 40px;
      opacity: 1;
      /** 文本1 */
      font-size: 30px;
      font-weight: 400;
      letter-spacing: 0px;
      line-height: 40px;
      color: rgba(15, 131, 193, 1);
      text-align: center;
      vertical-align: middle;
    }

    .desc {
      margin-top: 18px;
      height: 48px;
      height: 48px;
      opacity: 0.9;
      /** 文本1 */
      font-size: 18px;
      font-weight: 400;
      letter-spacing: 0px;
      line-height: 24px;
      color: rgba(102, 102, 102, 1);
      text-align: center;
      vertical-align: middle;
      white-space: pre-wrap;
    }

    .arrow_bg {
      margin-top: 34px;
      width: 30px;
      height: 30px;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .click {
      margin-top: 14px;
      height: 22px;
      opacity: 0.9;
      /** 文本1 */
      font-size: 16px;
      font-weight: 400;
      letter-spacing: 0px;
      line-height: 22px;
      color: rgba(204, 204, 204, 1);
      text-align: center;
      vertical-align: middle;
    }
  }
</style>

